<?php

namespace app\sys\controller;

use think\App;

class Index extends Base
{

    private $menu_model;

    public function __construct(App $app = null)
    {
        parent::__construct($app);
        $this->menu_model = model('common/MenuModel');
    }

    /**
     * @return \think\response\View
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     */
    public function index(){
        $data['login_menus'] = $this->menu_model->login_menu();
        return view('',$data);
    }

    public function desktop(){
        return view();
    }
}
